﻿using System;
using System.Collections.Generic;

namespace PurchaseSales.Manage.Model.Entities
{
    /// <summary>
    /// 商品信息
    /// </summary>
    public class Commodity : Entity<Guid>
    {
        #region Public Properties
        /// <summary>
        /// 属于哪个商品类型
        /// </summary>
        public virtual string CommodityType { get; set; }
        /// <summary>
        /// 编号
        /// </summary>
        public virtual string Number { get; set; }
        /// <summary>
        /// 条形码
        /// </summary>
        public virtual string BarCode { get; set; }
        /// <summary>
        /// 单位
        /// </summary>
        public virtual string Unit { get; set; }
        /// <summary>
        /// 预售价
        /// </summary>
        public virtual decimal PresalePrice { get; set; }
        /// <summary>
        /// 数量
        /// </summary>
        public virtual double Count { get; set; }
        /// <summary>
        /// 备注
        /// </summary>
        public virtual string Remark { get; set; }

        public virtual IList<PurchaseCommodity> PurchaseCommodities { get; set; }

        public virtual IList<Sales> Saleses { get; set; }

        #endregion

    }

}
